import Vue from 'vue'
import Router from 'vue-router'
import store from '../store/store'
import Hello from '@/components/Hello'
import Login from '@/components/Login'
import Hold from '@/components/Hold'
import Home from '@/components/Home'
import Newsinfo from '@/components/Newsinfo'
import Exesettings from '@/components/Exesettings'
import Noticelist from '@/components/Noticelist'
import Newslist from '@/components/Newslist'
import Noticeinfo from '@/components/Noticeinfo'
import Examine from '@/components/Examine'
import Had from '@/components/Had'
import check from '@/components/check'
import statistic from '@/components/statistic'
import feedback from '@/components/feedback'
import group from '@/components/group'


Vue.use(Router)


const routes = [{
    path: '/',
    component: Login
}, {
    path: '/login',
    name: 'Login',
    component: Login
}, {
    path: '/home',
    name: 'Hello',
    component: Hello,
    children: [{
        path: '/home', //首页
        component: Home
    },{
        path: '/hold', //代办
        component: Hold
    },{
        path: '/had', //办结
        component: Had
    },{
        path: '/check', //业务查询
        component: check
    },{
        path: '/noticelist', //通知公告列表
        component: Noticelist
    },{
        path: '/newslist', //供热动态列表
        component: Newslist
    },{
        path: '/noticeinfo', //通知公告详情
        component: Noticeinfo
    },{
        path: '/newsinfo', //供热动态详情
        component: Newsinfo
    },{
        path: '/exesettings', //执行人设置
        component: Exesettings
    },{
        path: '/examine', //待办审核
        component: Examine
    },{
        path: '/statistic', //业务统计
        component: statistic
    },{
        path: '/feedback', //待办反馈
        component: feedback
    },{
        path: '/group', //服务班组设置
        component: group
    }]
}]

const router = new Router({
    routes
});

export default router;
